<html>
<head><meta charset="utf-8"><title>tracing · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html">tracing</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="217274470"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217274470" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217274470">(Nov 19 2020 at 14:16)</a>:</h4>
<p>Hi, I have enabled the backtracing but it traces some functions, not all, is there any way to fix it to show all functions that call  each other?</p>



<a name="217274766"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217274766" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217274766">(Nov 19 2020 at 14:19)</a>:</h4>
<p>are you talking about the logging (RUSTC_LOG) or about backtraces when the compiler crashes?</p>



<a name="217274985"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217274985" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217274985">(Nov 19 2020 at 14:20)</a>:</h4>
<p>no about crashing, when a program has error and the compiler panics and shows stack backtrace</p>



<a name="217275337"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217275337" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217275337">(Nov 19 2020 at 14:23)</a>:</h4>
<p>hmm, maybe <code>RUST_BACKTRACE=full</code>?</p>



<a name="217277099"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217277099" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217277099">(Nov 19 2020 at 14:35)</a>:</h4>
<p>no it didn't help, actually it shows that <code>parse_block_tail </code> has called f.e, but this function calls <code>parse_full_stmt</code>, but it doesn't show in tracing</p>



<a name="217277426"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217277426" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217277426">(Nov 19 2020 at 14:37)</a>:</h4>
<p>that sounds like you're missing debug info for the compiler</p>



<a name="217277451"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217277451" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217277451">(Nov 19 2020 at 14:37)</a>:</h4>
<p>try <code>debug = true</code> in config.toml</p>



<a name="217277685"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217277685" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217277685">(Nov 19 2020 at 14:39)</a>:</h4>
<p>yeah it was false, but do I need to clear the build and then build again?</p>



<a name="217277731"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217277731" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217277731">(Nov 19 2020 at 14:40)</a>:</h4>
<p>unfortunately it will rebuild, yes. You don't have to run <code>x.py clean</code> though, x.py knows that debug = true invalidates the cache</p>



<a name="217277838"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217277838" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217277838">(Nov 19 2020 at 14:40)</a>:</h4>
<p>hmm but I did <code>./x.py build</code> now and the result is same</p>



<a name="217277873"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217277873" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217277873">(Nov 19 2020 at 14:40)</a>:</h4>
<p>oh sorry no, wait</p>



<a name="217278116"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217278116" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217278116">(Nov 19 2020 at 14:42)</a>:</h4>
<p>yeah the result is same, the command I run is this: <code>RUST_BACKTRACE=full RUSTC_LOG="rustc_parse=debug" rustc +stage1 ./src/test/ui/parser/mistyped_reserved_token.rs -Z treat-err-as-bug=1</code></p>



<a name="217278592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217278592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217278592">(Nov 19 2020 at 14:46)</a>:</h4>
<p>and what's the output you're seeing?</p>



<a name="217278659"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217278659" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217278659">(Nov 19 2020 at 14:46)</a>:</h4>
<p>the output is same with previous result</p>



<a name="217278721"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/tracing/near/217278721" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/tracing.html#217278721">(Nov 19 2020 at 14:47)</a>:</h4>
<p>f.e I don't see that <code>parse_full_stmt</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>